package com.qf.mvc2202.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller//代表当前类是一个Springmvc框架
@RequestMapping("/hello")
public class HelloController {
    @RequestMapping("/test1")
    public String test1() {
        System.out.println("hello test1");
        //返回视图名字
        return "hello";
    }
}
